package com.futao.springbootlearn20220224.aware;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.stereotype.Component;

/**
 * @author futao@gmail.com
 * @date 2022/3/9
 */
@Slf4j
@Component
public class BeanClassLoaderAwareDemo implements BeanClassLoaderAware {
    @Override
    public void setBeanClassLoader(ClassLoader classLoader) {
        log.info("获取到加载当前bean所使用的的classLoader:{}", classLoader);
    }
}
